import axios, { AxiosInstance, AxiosResponse, InternalAxiosRequestConfig } from 'axios';

const http: AxiosInstance = axios.create({
    baseURL: process.env.REACT_APP_BASE_URL
})


http.interceptors.request.use((config: InternalAxiosRequestConfig) => {
    return config
})

http.interceptors.response.use((response: AxiosResponse) => {
    return response
})


export default http